//
//  BulkViewController.m
//  计算面积体积
//
//  Created by student on 16/2/22.
//  Copyright © 2016年 NIIT. All rights reserved.
//

#import "BulkViewController.h"


@interface BulkViewController ()
@property (weak, nonatomic) IBOutlet UITextField *length;

@property (weak, nonatomic) IBOutlet UITextField *width;

@property (weak, nonatomic) IBOutlet UITextField *rectangleBluk;
@property (weak, nonatomic) IBOutlet UITextField *height;

@property (weak, nonatomic) IBOutlet UITextField *radius;

@property (weak, nonatomic) IBOutlet UITextField *circleBluk;


@end

@implementation BulkViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}
- (IBAction)didClickBtn {
    float f = [self.length.text floatValue]*[self.width.text floatValue]*[self.height.text floatValue];
    [self.rectangleBluk setText:[NSString stringWithFormat:@"%f",f]];
    float f1 = [self.radius.text floatValue]*[self.radius.text floatValue]*M_PI;
    [self.circleBluk setText:[NSString stringWithFormat:@"%f",f1]];
    self.summaryVC.count++;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
